package edu.gmu.middleware;

/**
 * SinkListener represents an object interested in sink events.  Listeners
 * should be sure to do delay the return of this callback because
 * the source of the event likely needs to return to reading from
 * the sink.
 */
public interface SinkListener
{   
    /**
     * Called from source object when data is received.
     * @param event
     */
    public void dataReceived( SinkDataEvent event );
    
    /**
     * Called from source object when the sink is disconnected.
     * @param event
     */
    public void sinkDisconnected( SinkDisconnectedEvent event );
}
